package com.neuedu.vehicleanalysisapi.controller;

import com.neuedu.vehicleanalysisapi.pojo.bStock;
import com.neuedu.vehicleanalysisapi.util.ResponseBody;
import com.neuedu.vehicleanalysisapi.service.bStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class bStockController {
    @Autowired
    private bStockService bStockService;

    @GetMapping("/queryAllStock")
    public ResponseBody<List<bStock>> queryAllStock() {
        List<bStock> bStock = bStockService.queryAllStock();
        ResponseBody responseBody = new ResponseBody("200", "成功", bStock);
        return responseBody;
    }
}
